package org.zxy.org.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department {
    @ApiParam(name = "ID属性", required = true)
    private Long id;
    private String name;
    private String intro;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;
    private Long manager_id;
    private Long parent_id;
    private String path;
    private Integer state;
    private Employee manager;
    private Department parent;
    private List<Department> children = new ArrayList<>();
}
